import os
import sys

LZSD_WORK_DIR = "E:\\项目\\公司\\backtesting-electron-app\\"

class LZSDUtils:
    @staticmethod
    def is_exe_running():
        return getattr(sys, 'frozen', False)
    @staticmethod

    def get_app_dir_file_path(file_name):
        if LZSDUtils.is_exe_running():
            exe_dir = os.path.dirname(sys.executable)
            return os.path.join(exe_dir, file_name)
        else:
            return LZSD_WORK_DIR + file_name